# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: handler.py
# Time: 17:40

from common.element.element import WebTools
from common.utils.read_util import OperationYaml


class NewthemeHandler(WebTools):
    def __init__(self, driver, log):
        super().__init__(driver, log)
        self.page = OperationYaml("new_theme.yaml").get_yaml()

    def get_zhutiqiehuan(self):
        return self.get_element_wait(self.page.get("zhutiqiehuan"))

    def get_haibaodushujulebu(self):
        return self.get_element_wait(self.page.get("haibaodushujulebu"))

    def get_yuedulibao(self):
        return self.get_element_wait(self.page.get("yuedulibao"))

    def get_zhutiguanli(self):
        return self.get_elements_wait(self.page.get("zhutiguanli"))

    def get_xinzengzhuti(self):
        return self.get_element_wait(self.page.get("xinzengzhuti"))

    def get_zhutimingcheng(self):
        return self.get_element_wait(self.page.get("zhutimingcheng"))

    def get_zhutitupian(self):
        return self.get_element_wait(self.page.get("zhutitupian"))

    def get_iframe_zhutijieshao(self):
        return self.get_element_wait(self.page.get("iframe_zhutijieshao"))

    def get_zhutijieshao(self):
        return self.get_element_wait(self.page.get("zhutijieshao"))

    def get_shangchauntupian(self):
        return self.get_element_wait(self.page.get("shangchauntupian"))

    def get_xuanzetupian(self):
        return self.get_element_wait(self.page.get("xuanzetupian"))

    def get_shichangjia(self):
        return self.get_element_wait(self.page.get("shichangjia"))

    def get_xiaoshoujia(self):
        return self.get_element_wait(self.page.get("xiaoshoujia"))

    def get_tiyanjia(self):
        return self.get_element_wait(self.page.get("tiyanjia"))

    def get_baocun(self):
        return self.get_element_wait(self.page.get("baocun"))
